package ru.amse.tsyganov.jumleditor.model.activity;

import ru.amse.tsyganov.jumleditor.model.common.Edge;
import ru.amse.tsyganov.jumleditor.model.common.StateVertex;


public class Transition extends Edge {
	
	private boolean guard = false;
	
	private String guardExpression = "";

	public Transition(
			StateVertex sourceVertex, 
			StateVertex targetVertex) {
		
		super(sourceVertex, targetVertex);
	}
	
	public boolean isGuard() {
		return guard;
	}

	public void setGuard(boolean guard) {
		this.guard = guard;
	}

	public String getGuardExpression() {
		return guardExpression;
	}

	public void setGuardExpression(String guardExpression) {
		this.guardExpression = guardExpression;
	}
}
